package com.ashapo.pattern.pattern021nullobject;

//第2步
//创建扩展上述类的具体类

public class RealCustomer extends AbstractCustomer {

    public RealCustomer(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public boolean isNil() {
        return false;
    }
}
